/*
 * This file is part of TradeHelper library.
 *
 * TradeHelper library is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * TradeHelper library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with TradeHelper library.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.rag.core;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

/**
 * User: mgarin Date: 11.04.12 Time: 17:46
 */

@XStreamAlias( "SingleNews" )
public class SingleNews
{
    @XStreamAsAttribute
    private Long date;

    @XStreamAsAttribute
    private NewsType type;

    @XStreamAsAttribute
    private String title;

    @XStreamAsAttribute
    private String text;

    @XStreamAsAttribute
    private String link;

    public SingleNews ()
    {
        super ();
    }

    public Long getDate ()
    {
        return date;
    }

    public void setDate ( Long date )
    {
        this.date = date;
    }

    public NewsType getType ()
    {
        return type;
    }

    public void setType ( NewsType type )
    {
        this.type = type;
    }

    public String getTitle ()
    {
        return title;
    }

    public void setTitle ( String title )
    {
        this.title = title;
    }

    public String getText ()
    {
        return text;
    }

    public void setText ( String text )
    {
        this.text = text;
    }

    public String getLink ()
    {
        return link;
    }

    public void setLink ( String link )
    {
        this.link = link;
    }
}